<template>
  <a-modal
    title="关于"
    :visible="visible"
    @cancel="handleCancel"
    :footer="null"
  >
    <div class="about_content">
      <div class="top_title">任子行网络安全审计系统</div>
      <div class="info" v-for="(item, index) in infoList" :key="index">
        <div class="left_title">{{ item.title }}</div>
        <div class="right_con">{{ item.con }}</div>
      </div>

      <div class="bottom">
        警告:本计算机软件受著作权法和国际公约的保护.未经授权擅自复制或传播本程序的部分或全部,可能受到严厉的民事及刑事制裁,并将在法律许可的范围内受到最大可能的起诉.
      </div>
    </div>
  </a-modal>
</template>

<script>
const infoList = [
  { title: "当前版本：", con: "V5.0" },
  { title: "当前协议总数：", con: "3801" },
  { title: "协议特征库：", con: "2.0.0.85" },
  { title: "站点分类库：", con: "2.0.0.85" },
  { title: "产品信息：", con: "SURF-SA_未注册/剩余试用时间:47天" },
  { title: "产品标识：", con: "A342915D578E95D18DDDCA91BE965DFC" },
  { title: "版权所有：", con: "©任子行网络技术股份有限公司" },
];
export default {
  props: {
    visible: {
      type: Boolean,
      required: true,
      default: () => false,
    },
  },
  data() {
    return {
      infoList,
    };
  },
  methods: {
    handleCancel() {
      this.$emit("handleAbout");
    },
  },
};
</script>

<style scoped lang="less">
.about_content {
  .top_title {
    text-align: center;
    font-weight: bold;
    font-size: 16px;
  }
  .info {
    margin: 10px 0px;
    display: flex;
    justify-content: space-between;
    .left_title {
      flex: 1;
      text-align: right;
    }
    .right_con {
      flex: 2;
    }
  }
  .bottom {
    border-top: 1px solid #ccc;
    padding-top: 5px;
  }
}
</style>
